package fs.ls.gs;

import fs.ls.gs.Model.GoodsModel;
import fs.ls.gs.dao.GoodsServiceImpl;

import java.sql.SQLException;
import java.util.List;

/**
 * @Auther: zhezhe
 * @Date: 2018/9/1418:07
 * @Description:
 */
public class Test {
    public static void main(String[] args) throws SQLException {


        GoodsServiceImpl goodsService = new GoodsServiceImpl();
       // GoodsModel goodsModel =  new GoodsModel();

//        goodsModel.setGoodsName("苹果");
//        goodsModel.setGoodsNum(2);
//        goodsModel.setGoodsPrice(2.0);x
//
//        goodsService.addGoods(goodsModel);
//        goodsService.queryAll();
   // GoodsModel goodsModel   = goodsService.getGoodsId(3);

        GoodsModel goodsModel   = goodsService.getGoodsName("苹果");
        System.out.println(goodsModel);

    }
}
